﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WorkStation.Frameworks.EasyBus.DbModel
{
    /// <summary>
    /// 发布信息
    /// </summary>
    [Serializable]
    public class PublishInfo
    {
        public string _id { get; set; }

        /// <summary>
        /// 总线名称
        /// </summary>
        public string BusName { get; set; }

        /// <summary>
        /// 发布宿主IP
        /// </summary>
        public string ServerIp { get; set; }

        /// <summary>
        /// 消息路由关键字
        /// </summary>
        public string RouteKey { get; set; }

        /// <summary>
        /// 节点名称（用于标识负载节点）
        /// </summary>
        public string NodeName { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        public string Description { get; set; }

        public PublishInfo()
        {
            this._id = Guid.NewGuid().ToString();
        }
    }
}
